home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.5)
-
- import itertools
- from dl_daemon import command
- import eventloop
- requestIdGenerator = itertools.count()
- waitingHTTPAuthCallbacks = { }
-
- def handleHTTPAuthResponse(id, authHeader):
- callback = waitingHTTPAuthCallbacks.pop(id)
- callback(authHeader)
-
-
- def findHTTPAuth(callback, host, path):
- id = requestIdGenerator.next()
- waitingHTTPAuthCallbacks[id] = callback
- daemon = daemon
- import dl_daemon
- c = command.FindHTTPAuthCommand(daemon.lastDaemon, id, host, path)
- c.send()
-
-
- def askForHTTPAuth(callback, host, path, authScheme):
- id = requestIdGenerator.next()
- waitingHTTPAuthCallbacks[id] = callback
- daemon = daemon
- import dl_daemon
- c = command.AskForHTTPAuthCommand(daemon.lastDaemon, id, host, path, authScheme)
- c.send()
-
-